package com.aaa.tars.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @FileName: Ticket
 * @Description:
 * @Author: 李宗盛
 * @CreateTime: 2025/9/12 11:14
 * @Version: 17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer"})
public class Ticket {
    private Integer ticketId;
    private Integer scenicId;
    private String ticketName;
    private String ticketType;
    private Date ticketStartrq;
    private Date ticketEndrq;
    private Integer ticketOprice;
    private Double ticketDprice;
    private String ticketPtype;
    private Integer ticketFkqx;
    private Integer ticketQpqx;
    private String ticketIstodayshow;
    private String ticketQptype;
    private Double ticketDpj;
    private String ticketIsgd;
    private Integer ticketMaxdaysell;
    private Integer ticketMaxdaypersonsell;
    private Integer ticketMaxsingledeal;

    // 新增：当前门票关联的所有订单（一对多关系，与TicketMapper中collection的property对应）
    @JsonIgnore
    private List<Order> orders;
    @JsonIgnore
    private Scenic scenic;
}
